<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

    <script type="text/javascript">
	function logOut(){
		if(confirm("确定要注销系统吗?")){
			window.location.href="user!logOut";
		}
	}
</script>
<div class="row-fluid">
	<div class="span12">
		<div class="navbar">
		  <div class="navbar-inner">
            <c:choose>
                <c:when test="${currentUser==null }">
                    <a class="brand" href="#">学生信息</a>
                </c:when>
                <c:otherwise>

                <a class="brand" href="main.jsp">首页</a>
                <ul class="nav">
                    <li class="dropdown">
                           <a href="#" class="dropdown-toggle" data-toggle="dropdown">学生信息管理 <b class="caret"></b></a>
                           <ul class="dropdown-menu">
                             <li><a href="student!preSave">学生信息添加</a></li>
                             <li><a href="student!list">学生信息维护</a></li>
                           </ul>
                       </li>
                    <!--<li class="dropdown">
                           <a href="#" class="dropdown-toggle" data-toggle="dropdown">班级信息管理 <b class="caret"></b></a>
                           <ul class="dropdown-menu">
                             <li><a href="class!preSave">班级信息添加</a></li>
                             <li><a href="class!list">班级信息维护</a></li>
                           </ul>
                       </li>
                       <li class="dropdown">
                           <a href="#" class="dropdown-toggle" data-toggle="dropdown">年级信息管理 <b class="caret"></b></a>
                           <ul class="dropdown-menu">
                             <li><a href="grade!preSave">年级信息添加</a></li>
                             <li><a href="grade!list">年级信息维护</a></li>
                           </ul>
                       </li>
                    -->
                    <li class="dropdown">
                           <a href="#" class="dropdown-toggle" data-toggle="dropdown">系统管理 <b class="caret"></b></a>
                           <ul class="dropdown-menu">
                             <!--<li><a href="dataDic!list">数据字典维护</a></li>
                             <li><a href="dataDicType!list">数据字典类别维护</a></li>-->
                             <li><a href="user!preSave">修改密码</a></li>
                             <li class="divider"></li>
                             <li><a href="javascript:logOut()">退出系统</a></li>
                           </ul>
                       </li>
                </ul>

                </c:otherwise>
            </c:choose>

    </div>
		</div>
	</div>
</div>